import request from '@/utils/request'

// 查询资产类别列表
export function listAssetType(query) {
  return request({
    url: '/business/base/assetType/list',
    method: 'get',
    params: query
  })
}

// 查询资产类别详细
export function getAssetType(id) {
  return request({
    url: '/business/base/assetType/' + id,
    method: 'get'
  })
}

// 新增资产类别
export function addAssetType(data) {
  return request({
    url: '/business/base/assetType/insert',
    method: 'post',
    data: data
  })
}

// 修改资产类别
export function updateAssetType(data) {
  return request({
    url: '/business/base/assetType/update',
    method: 'put',
    data: data
  })
}

// 删除资产类别
export function delAssetType(id) {
  return request({
    url: '/business/base/assetType/delete/' + id,
    method: 'delete'
  })
}
